/**
 * @file    dev_dwg.c
 * @brief   硬件看门狗驱动
 * @author  Liuwei
 * @version 1.0.1
 * @date    2023-04-22
 * 
 * @copyright Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD
 * 
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version   <th>Author   <th>Description
 * <tr><td>2023-04-22 <td>1.0.1     <td>Liuwei   <td>首次创建
 * </table>
 */

/* includes ------------------------------------------------------------------*/
#include "drv_gpio.h"
/* macro/define --------------------------------------------------------------*/

/* typedef -------------------------------------------------------------------*/

/* local functions -----------------------------------------------------------*/

/* static variables ----------------------------------------------------------*/

/* global variables ----------------------------------------------------------*/

/** ------------------------------------------------------------------------- *
  *                             Global function
 ** ------------------------------------------------------------------------- */
/**
 * @brief 看门狗初始化
 */
void dev_wdg_init(void)
{
    drv_gpio_cfg_mode(HARD_WDG_PORT , HARD_WDG_PIN , GPIO_MODE_OUTPUT);
}

/**
 * @brief 看门狗喂狗
 */
void dev_wdg_feed(void)
{
    drv_gpio_toggle_pin(HARD_WDG_PORT , HARD_WDG_PIN);
}
/** ------------------------------------------------------------------------- *
  *                              Local function
 ** ------------------------------------------------------------------------- */
 
/********** Copyright (c) 2023 JBD-Energy Storage Technology Co. LTD *********/


